
import React from 'react'
import { ArrContext } from './App'
export default function child2(props) {
    const { Consumer } = ArrContext
    return (
        <div>
             <button onClick={() => {
            //    A()
                props.A('#ccc')
            }}>点击</button>
            <Consumer>
           
             {
                (value) => {
                 return   Array.isArray(value) && value.map((item) => {
                        return item
                    })
                }
             }  
            </Consumer>
        </div>
    )
}
